package com.example.whatrubbish.vo;

import com.example.whatrubbish.model.Commodity;
import com.example.whatrubbish.model.CommodityDetail;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CommodityDetailVO extends Commodity implements Serializable {
    private CommodityDetail commodityDetail;

    public CommodityDetailVO() {
        super();
    }

    public CommodityDetailVO(Long id, String title, Integer price, Integer amount, Date createTime, Integer status, String introduce, CommodityDetail commodityDetail) {
        super(id, title, price, amount, createTime, status, introduce);
        this.commodityDetail = commodityDetail;
    }
}
